package vno.fux.ui
{
	import flash.display.DisplayObject;
	
	import vno.fux.BaseDisplayObject;
	import flash.events.Event;
	import flash.errors.IllegalOperationError;
	
	public class BaseComponentView extends BaseDisplayObject
	{		
		protected var _model:BaseComponentModel;
		protected var _controller:BaseComponentController;
		
		public function BaseComponentView(model_:BaseComponentModel, controller_:BaseComponentController)
		{
			_model = model_;
			_controller = controller_;
			_model.addEventListener(Event.CHANGE, update);
		}
		public function update(evt:Event):void
		{
			throw new IllegalOperationError("Please override the function for use");
		}
	}
}